package com.baiyimi.pan.server.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class WelcomeController {
    @RequestMapping({"/"})
    public String home() {
        return "redirect:/home.html";
    }


    @GetMapping("hello")
    @ResponseBody
    public String hello() {
        return "hello world";
    }
}
